﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;


namespace H2.NET.Business
{

    [Table]
    [Serializable]
    public partial class m_Customer : DataObject
    {
        [ID]
        [DID]
        public int ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private int _ID; 
        public static FieldInfo iD = new FieldInfo("m_Customer", "ID");
        
        [Column]
        public string CustomerCode { get { return _CustomerCode; } set { _CustomerCode = value; EntityState.FieldChange("CustomerCode"); } } private string _CustomerCode; public static FieldInfo customerCode = new FieldInfo("m_Customer", "CustomerCode");
        [Column]
        public string OrgGroup { get { return _OrgGroup; } set { _OrgGroup = value; EntityState.FieldChange("OrgGroup"); } } private string _OrgGroup; public static FieldInfo orgGroup = new FieldInfo("m_Customer", "OrgGroup");
        [Column]
        public string Division { get { return _Division; } set { _Division = value; EntityState.FieldChange("Division"); } } private string _Division; public static FieldInfo division = new FieldInfo("m_Customer", "Division");
        [Column]
        public string SalesSAPCode { get { return _SalesSAPCode; } set { _SalesSAPCode = value; EntityState.FieldChange("SalesSAPCode"); } } private string _SalesSAPCode; public static FieldInfo salesSAPCode = new FieldInfo("m_Customer", "SalesSAPCode");
        [Column]
        public string DistributionChannel { get { return _DistributionChannel; } set { _DistributionChannel = value; EntityState.FieldChange("DistributionChannel"); } } private string _DistributionChannel; public static FieldInfo distributionChannel = new FieldInfo("m_Customer", "DistributionChannel");
        [Column]
        public string SalesOffice { get { return _SalesOffice; } set { _SalesOffice = value; EntityState.FieldChange("SalesOffice"); } } private string _SalesOffice; public static FieldInfo salesOffice = new FieldInfo("m_Customer", "SalesOffice");
        [Column]
        public string PriceGroup { get { return _PriceGroup; } set { _PriceGroup = value; EntityState.FieldChange("PriceGroup"); } } private string _PriceGroup; public static FieldInfo priceGroup = new FieldInfo("m_Customer", "PriceGroup");
        [Column]
        public string CustomerName { get { return _CustomerName; } set { _CustomerName = value; EntityState.FieldChange("CustomerName"); } } private string _CustomerName; public static FieldInfo customerName = new FieldInfo("m_Customer", "CustomerName");
        [Column]
        public string ShortName { get { return _ShortName; } set { _ShortName = value; EntityState.FieldChange("ShortName"); } } private string _ShortName; public static FieldInfo shortName = new FieldInfo("m_Customer", "ShortName");
        [Column]
        public string CityID { get { return _CityID; } set { _CityID = value; EntityState.FieldChange("CityID"); } } private string _CityID; public static FieldInfo cityID = new FieldInfo("m_Customer", "CityID");
        [Column]
        public string RegionID { get { return _RegionID; } set { _RegionID = value; EntityState.FieldChange("RegionID"); } } private string _RegionID; public static FieldInfo regionID = new FieldInfo("m_Customer", "RegionID");
        [Column]
        public string CustomerAddress { get { return _CustomerAddress; } set { _CustomerAddress = value; EntityState.FieldChange("CustomerAddress"); } } private string _CustomerAddress; public static FieldInfo customerAddress = new FieldInfo("m_Customer", "CustomerAddress");
        [Column]
        public string CountyCode { get { return _CountyCode; } set { _CountyCode = value; EntityState.FieldChange("CountyCode"); } } private string _CountyCode; public static FieldInfo countyCode = new FieldInfo("m_Customer", "CountyCode");
        [Column]
        public string Bran2 { get { return _Bran2; } set { _Bran2 = value; EntityState.FieldChange("Bran2"); } } private string _Bran2; public static FieldInfo bran2 = new FieldInfo("m_Customer", "Bran2");
        [Column]
        public string Bran3 { get { return _Bran3; } set { _Bran3 = value; EntityState.FieldChange("Bran3"); } } private string _Bran3; public static FieldInfo bran3 = new FieldInfo("m_Customer", "Bran3");
        [Column]
        public string FiskNumber { get { return _FiskNumber; } set { _FiskNumber = value; EntityState.FieldChange("FiskNumber"); } } private string _FiskNumber; public static FieldInfo fiskNumber = new FieldInfo("m_Customer", "FiskNumber");
        [Column]
        public string IsDisabled { get { return _IsDisabled; } set { _IsDisabled = value; EntityState.FieldChange("IsDisabled"); } } private string _IsDisabled; public static FieldInfo isDisabled = new FieldInfo("m_Customer", "IsDisabled");
        [Column]
        public DateTime Createtime { get { return _Createtime; } set { _Createtime = value; EntityState.FieldChange("Createtime"); } } private DateTime _Createtime; public static FieldInfo createtime = new FieldInfo("m_Customer", "Createtime");

    
    }
}
